//
//  Language.swift
//  ScarnKing
//
//  Created by ninebot on 2025/7/22.
//

import Foundation

enum Language {
    case auto
    case chinese
    case english
    case japanese
    case korean
    case french
    case german
    case spanish
    case italian
    case portuguese
    case russian
    
    var nativeName: String {
        switch self {
        case .auto:
            return "自动检测"
        case .chinese:
            return "中文"
        case .english:
            return "英语"
        case .japanese:
            return "日语"
        case .korean:
            return "韩语"
        case .french:
            return "法语"
        case .german:
            return "德语"
        case .spanish:
            return "西班牙语"
        case .italian:
            return "意大利语"
        case .portuguese:
            return "葡萄牙语"
        case .russian:
            return "俄语"
        }
    }
    
    var baiduCode: String {
        switch self {
        case .auto:
            return "auto"
        case .chinese:
            return "zh"
        case .english:
            return "en"
        case .japanese:
            return "jp"
        case .korean:
            return "kor"
        case .french:
            return "fra"
        case .german:
            return "de"
        case .spanish:
            return "spa"
        case .italian:
            return "it"
        case .portuguese:
            return "pt"
        case .russian:
            return "ru"
        }
    }
} 